﻿using ParboiledSharp.lang.roboline.context;

namespace ParboiledSharp.lang.roboline.ast
{
    abstract class AbstractChunk
    {
        protected int _nextChunkOffset=1;
        /// <summary>
        /// Execute bytecode and retuns next chunk
        /// </summary>
        /// <returns>Returns next chunk</returns>
        public abstract int Execute(ExecContext context);

        public int getNextChunkOffset() {
            return _nextChunkOffset;
        }
    }
}
